<?php
require str_replace('test', 'src', dirname(__FILE__)) . '/Conf.php';
class ConfTest extends PHPUnit_Framework_TestCase
{
    private $conf;

    /**
     * 相当于构造
     */
    public function setUp()
    {
        $this->conf = new Conf(dirname(__FILE__) . '/');
    }

    public function testGet()
    {
        $r = $this->conf->get('test', 'c[\'d\']');
        $this->assertEquals('dd', $r);
    }
}
?>
